﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class UControls_UCFacebook : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        lblTruycap.Text = Application["sotruycap"].ToString();
        lblOnline.Text = Application["soonline"].ToString();
        
        //xử lý của fShare và Like
        if (!IsPostBack)
        {
            string urlHienhanh = HttpContext.Current.Request.Url.AbsoluteUri; ;
            ahref.HRef = urlHienhanh;
            fbLike.Attributes["data-href"] = urlHienhanh;
        }
    }
    void Page_PreRender(object sender, EventArgs e)
    {
        lblTruycap.Text = Application["sotruycap"].ToString();
        lblOnline.Text = Application["soonline"].ToString();
    }
}